package cn.wolfcode.business.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BusStatement  {
    public static final Integer STATUS_CONSUME = 0;//消费中
    public static final Integer STATUS_PAID = 1;//已支付
    //用于表示是否软删除
    public static final Integer DELETE_NO = 0;//0没有删除
    public static final Integer DELETE_YES = 1;//1删除
    /** 开始时间 */

    private String beginTime;

    /** 结束时间 */

    private String endTime;
    //id
    private Long id;
    //客户姓名
    private String customerName;
    //客户联系方式
    private String customerPhone;
    //实际到店时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date actualArrivalTime;
    //车牌号码
    private String licensePlate;
    //汽车类型
    private String carSeries;
    //服务类型【0维修/1保养】
    private Integer serviceType;
    //预约单ID【通过这个来判断是否预约用户,唯一标识】
    private Long appointmentId;
    //结算状态【消费中0/已支付1】
    private Integer status;
    //收款时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;
    //收款人id
    private Long payeeId;
    //总消费金额
    private BigDecimal totalAmount;
    //服务项数量
    private BigDecimal totalQuantity;
    //折扣金额
    private BigDecimal discountAmount;
    //创建时间
    private Date createTime;
    //备注信息
    private String info;
    //0没有删除/1删除
    private Integer isDelete;


}
